package com.lcc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcc.common.utils.PageUtils;
import com.lcc.gulimall.product.entity.AttrGroupEntity;
import com.lcc.gulimall.product.vo.AttrGroupDescVo;
import com.lcc.gulimall.product.vo.AttrGroupRelationVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Yunmo
 * @email li_cuican@163.com
 * @date 2021-11-03 21:02:34
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    /**
     * 根据分类ID和属性类型返回与分组以及分组关联的属性
     * @param catelogId
     * @param attrType
     * @return
     */
    List<AttrGroupDescVo> listAttrGroupWithAttrByCatId(Long catelogId, int attrType);
}

